import request from '@/utils/request'

export default {

    getHospSetList(current, limit, searchObj) {
    return request({
    url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
    method: 'post',
    data: searchObj
        })
      },
    deleteHospsSet(id){
      return request ({
        url: `/admin/hosp/hospitalSet/${id}`,
        method: 'delete'
      })
    },
    removeRows(idList) {
      return request({
        url: `${api_name}/batchRemove`,
        method: 'delete',
        data: idList
      })
    },
    //锁定和取消锁定
    lockeHospsSet(id,status) {
      return request ({
        url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
        method: 'put'
      })
    },
    //添加医院设置
    saveHospSet(hospitalSet) {
      return request ({
        url: `/admin/hosp/hospitalSet/saveHospitalSet`,
        method: 'post',
        data: hospitalSet
      })
    },
    deleteHospsBatchSet(idList) {
      return request({
        url: `/admin/hosp/hospitalSet/batchRemove`,
        method: 'delete',
        data: idList
      })
    },
      //添加医院设置
    saveHospSet(hospitalSet) {
      return request ({
        url: `/admin/hosp/hospitalSet/saveHospitalSet`,
        method: 'post',
        data: hospitalSet
      })
    },
     //医院设置id查询
    getHospSet(id) {
      return request ({
        url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
        method: 'get'
      })
    },
      //修改医院设置
     updateHospSet(hospitalSet) {
      return request ({
        url: `/admin/hosp/hospitalSet/updateHospitalSet`,
        method: 'post',
        data: hospitalSet
      })
    }



      


}
    